find complimentary function when roots are different